import request from '@/utils/request'

// 查询存储文档分段信息列表
export function listSplit(query) {
  return request({
    url: '/docSplit/split/list',
    method: 'get',
    params: query
  })
}

// 查询存储文档分段信息详细
export function getSplit(docSegId) {
  return request({
    url: '/docSplit/split/' + docSegId,
    method: 'get'
  })
}

// 新增存储文档分段信息
export function addSplit(data) {
  return request({
    url: '/docSplit/split',
    method: 'post',
    data: data
  })
}

// 修改存储文档分段信息
export function updateSplit(data) {
  return request({
    url: '/docSplit/split',
    method: 'put',
    data: data
  })
}

// 删除存储文档分段信息
export function delSplit(docSegId) {
  return request({
    url: '/docSplit/split/' + docSegId,
    method: 'delete'
  })
}
